﻿Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel
Imports Equipment.Service

' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
' <System.Web.Script.Services.ScriptService()> _
<System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
Public Class Scheduler
    Inherits System.Web.Services.WebService

    <WebMethod()> _
    Public Function Run() As String
        Try
            WorkOrderService.Run()
            NotificationService.Run()
        Catch ex As Exception
            Return ("Error")
        End Try
        Return ("Completed")
    End Function

End Class